package com.wsh.sys;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wsh.base.BaseVo;
import com.wsh.dto.sys.DepartmentDto;
import com.wsh.entity.sys.DepartmentEntity;
import com.wsh.vo.sys.DepartmentTree;
import com.wsh.vo.sys.DepartmentVo;

import java.util.List;
import java.util.Map;

/**
* @author 王思涵
* @date 2020-03-14
*/
public interface DepartmentService extends IService<DepartmentEntity> {

    IPage<DepartmentEntity> getList(DepartmentDto departmentDto);

    BaseVo<DepartmentVo> queryVo(String formId);

    boolean saveDepartment(DepartmentDto departmentDto);

    List<DepartmentTree> departTree(String parentId);

}
